<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    //后台页面展示
    public function index()
    {
        return view('admin.admin.adminindex');
    }

    //后台欢迎页面
    public function welcome(){
        return view('admin.admin.welcome');
    }

    //后台用户退出操作
    public function logout(){
            auth()->logout();
            return redirect(route('admin.login'));

    }



}
